import request from '@/utils/request'

// 查询YmClass列表
export function listYmClass(query) {
    return request({
        url: '/api/v1/classList',
        method: 'get',
        params: query
    })
}

// 查询YmClass详细
export function getYmClass (classId) {
    return request({
        url: '/api/v1/class/' + classId,
        method: 'get'
    })
}


// 新增YmClass
export function addYmClass(data) {
    return request({
        url: '/api/v1/class',
        method: 'post',
        data: data
    })
}

// 修改YmClass
export function updateYmClass(data) {
    return request({
        url: '/api/v1/class',
        method: 'put',
        data: data
    })
}

// 删除YmClass
export function delYmClass(classId) {
    return request({
        url: '/api/v1/class/' + classId,
        method: 'delete'
    })
}
